<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>隐式转换</title>
</head>

<body>
  <script>
    // 1.隐式类型转换为数字型的运算符
    // 1.1算数运算符  -* /% 比较运算符 > \\
    console.log('199' * '2');
    console.log(8 - '3');
    // 字符串的前面有个加号就转换成字符串
    console.log(8 + +'8');
    console.log(typeof +'123')
    // 2.隐式类型转换为字符串的运算符  +凭借字符串 俩侧之一个是字符串就是拼接
    console.log('8');
    console.log(+'8');
    console.log('8' + '8');
    console.log(8 + +'8');
  </script>
</body>
</html>